/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: COFFEEWEN
 * Date: 2022-08-13
 * Time: 10:09
 */

public class Test {

    //**
    // *
    /*
    415. 字符串相加
     */
    class Solution {
        public String addStrings(String num1, String num2) {
            //String str =new String.valueOf(int(num1) + int(num2));
            int len1 = num1.length()-1;
            int len2 = num2.length()-1;
            StringBuilder str = new StringBuilder();
            //StringBuilder ans = new StringBuilder();
            int n1 = 0;
            int n2 = 0;
            int ret = 0;
            while (len1 >= 0 || len2 >= 0 || ret > 0){
                n1 = len1 > 0 ? num1.charAt(len1)-'0' : 0;
                n2 = len2 > 0 ? num2.charAt(len2)-'0' : 0;
                len1 -= 1;
                len2 -= 1;
                str.append((n1+n2+ret)%10);
                ret = (n1+n2+ret)/10;
            }
            return str.reverse().toString();
        }
    }
    public static void main(String[] args) {
        int n = 4/10;
        System.out.println(n);
    }
}
